import http from '../../utils/http/request'


// 根据ID查询新闻播报
export function getProjectIdList(params) {

    return http.get('/sys/projectprogress/info/'+params)
}


//获取新闻数据
export function getProjectList(data) {
    // return http({
    //     url: '/sys/projectprogress/list',
    //     method: 'POST',
    //     params: data
    // })
    return http.post('/sys/projectprogress/list',data)
}

//新增新闻数据
export function addProject(data) {
    return http({
        url: '/sys/projectprogress/save',
        method: 'POST',
        data
    })
}
//更新新闻数据
export function updateProject(data) {
    return http({
        url: '/sys/projectprogress/update',
        method: 'POST',
        data
    })
}

//删除新闻数据
export function delProject(data) {
    return http({
        url: '/sys/projectprogress/delete',
        method: 'POST',
        params: data
    })
}

//获取人员信息 只要指挥部
export function getPersonListEx(data) {
    return http({
        url: '/sys/projectprogress/personListEx',
        method: 'POST',
        params: data
    })
}

// //上传新闻图片
// export function uploadImage(data) {
//     return http({
//         url: '/sys/rotation/uploadImage',
//         method: 'POST',
//         params: data
//     })
// }


// 发布公告
export function getProgressRelease(id,status) {
    return http.get('/sys/projectprogress/release/'+id+'/'+status)
}
